const USER = "__user__"

export function loadUser() {
  return localStorage[USER]
}

export function setUser(user) {
  localStorage[USER] = user
  return user
}

export function deleteUser() {
  localStorage.removeItem(USER)
  localStorage.removeItem('token')
  return {}
}
